import { BaseService, Service } from '@/utils/request';
@Service('app-api/member/user')
export default class extends BaseService {
    uploadAvatar(data) {
        return this.request({
            url: '/update-avatar',
            method: 'POST',
            data,
        });
    }
    updateUserInfo(data) {
        return this.request({
            url: '/update-wx',
            method: 'POST',
            data,
        });
    }
    updateNickname(data) {
        return this.request({
            url: '/update-nickname?nickname=' + data.nickname,
            method: 'PUT',
            data,
        });
    }
}
